<?php if(!defined('HDPHP_PATH'))exit;C('SHOW_NOTICE',FALSE);?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="http://127.0.0.1/vancl_php/Application/Admin/View/css/style1.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="http://127.0.0.1/vancl_php/Static/css/hdjs.css" />
<script src="http://127.0.0.1/vancl_php/Static/js/jquery-1.7.2.min.js"></script>
<style>
	.hd-page span{
		
		display:inline !important;
	}
</style>
<script type="text/javascript">
</script>



</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">订单管理</a></li>
    <li><a href="#">订单列表</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    	
        	订单状态:
        			 <a href="<?php echo U('index',array('status'=>'未付款'));?>" class="hd-btn hd-btn-default     <?php if($hd['get']['status'] == '未付款'){ ?>hd-btn-success<?php } ?> hd-btn-sm" >未付款</a>
        			<a href="<?php echo U('index',array('status'=>'已发货'));?>" class="hd-btn hd-btn-default     <?php if($hd['get']['status'] == '已发货'){ ?>hd-btn-success<?php } ?> hd-btn-sm">已发货</a>
        			 <a href="<?php echo U('index',array('status'=>'已付款'));?>" class="hd-btn hd-btn-default     <?php if($hd['get']['status'] == '已付款'){ ?>hd-btn-success<?php } ?> hd-btn-sm">已付款</a>
        			 <a href="<?php echo U('index',array('status'=>'订单取消'));?>" class="hd-btn hd-btn-default     <?php if($hd['get']['status'] == '订单取消'){ ?>hd-btn-success<?php } ?> hd-btn-sm">订单取消</a>
        			 <a href="<?php echo U('index',array('status'=>'交易完成'));?>" class="hd-btn hd-btn-default     <?php if($hd['get']['status'] == '交易完成'){ ?>hd-btn-success<?php } ?> hd-btn-sm">交易完成</a>
        			 <a href="<?php echo U('index',array('status'=>'所有订单'));?>" class="hd-btn hd-btn-default     <?php if($hd['get']['status'] == '所有订单'){ ?>hd-btn-success<?php } ?> hd-btn-sm">所有订单</a>
        <ul class="toolbar1">
        <!--<li><span><img src="http://127.0.0.1/vancl_php/Application/Admin/View/images/t05.png" /></span>设置</li>-->
        </ul>
    
    </div>
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th>订单ID</th>
        <th>订单号</th>
        <th>收货人</th>
        <th>收货地址</th>
        <th>提交时间</th>
        <th>订单状态</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <?php foreach ($orderlists as $key=>$val){?>
        <tr>
        <td><?php echo $val['oid'];?></td>
        <td><a href="<?php echo U('Cart/details',array('oid'=>$val['oid']));?>"><?php echo $val['order_sn'];?></a></td>
        <td><?php echo $val['take_man'];?></td>
        <td><?php echo $val['take_addr'];?></td>
        <td><?php echo date('Y-m-d H:i:s',$val['order_time']);?></td>
        <td><?php echo $val['order_status'];?></td>
        <td><a href="<?php echo U('details',array('oid'=>$val['oid']));?>" class="hd-btn hd-btn-primary hd-btn-sm" style="display: inline;">明细</a></td>
        </tr>
        <?php }?>
        
         
        </tbody>
    </table>
  	<div class="hd-page"> 
   		<?php echo $page;?>
  	</div>
   
    
   
    
    
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
	<script>
//		$('.sonPlus').toggle(function(){
//			//切换+-号
//			$(this).find('.glyphicon').addClass('glyphicon-minus');
//			//获得当前的CID也就是下面的pid
//			var pid = $(this).parent('tr').data('cid');
//			$('tr').filter(function(index){
//				if($('tr').eq(index).data('pid') == pid){
//					$('tr').eq(index).show();
//				}
//			});
//		},function(){
//			$(this).find('.glyphicon').removeClass('glyphicon-minus');
//			var pid = $(this).parent('tr').data('cid');
//			$('tr').filter(function(index){
//				if($('tr').eq(index).data('pid') == pid){
//					$('tr').eq(index).hide();
//				}
//			});
//		})
</script>
</body>

</html>
